<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>脚标机回收记录信息</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

    <!-- App favicon -->
    <link rel="shortcut icon" href="assets/images/favicon.ico">

    <!-- App css -->
    <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="assets/css/icons.css" rel="stylesheet" type="text/css" />
    <link href="assets/css/metismenu.min.css" rel="stylesheet" type="text/css" />
    <link href="assets/css/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="assets/css/custom.css" />
    <!-- layer插件 -->
    <link rel="stylesheet" type="text/css" href="plugins/layer2.4/skin/layer.css" />

    <!-- bootstrap-select -->
    <link rel="stylesheet" type="text/css" href="plugins/bootstrap-select/css/bootstrap-select.min.css" />

    <script src="assets/js/modernizr.min.js"></script>

</head>

<body>

    <!-- Begin page -->
    <div id="wrapper">

        <!-- ============================================================== -->
        <!-- 页面内容开始 -->
        <!-- ============================================================== -->

        <!-- Start Page content -->
        <div class="my-content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card-box">
                            <h4 class="m-t-0 m-b-30 header-title">脚标机回收记录信息</h4>

                            <form class="form-horizontal" role="form">
                                <div class="form-group row">
                                    <label for="id" class="col-3 col-form-label">脚标机发放ID</label>
                                    <div class="col-9">
                                        <input readonly="readonly" type="text" class="form-control" id="id" name="id" placeholder="脚标机发放ID">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="barcodeMachineId" class="col-3 col-form-label">脚标机ID</label>
                                    <div class="col-9">
                                        <input readonly="readonly" type="text" class="form-control" id="barcodeMachineId" name="barcodeMachineId" placeholder="脚标机ID">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="stallsId" class="col-3 col-form-label">回收档口ID</label>
                                    <div class="col-9">
                                        <input readonly="readonly" type="text" class="form-control" id="stallsId" name="stallsId" placeholder="回收档口ID">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="recoveryDate" class="col-3 col-form-label">回收时间</label>
                                    <div class="col-9">
                                        <input readonly="readonly" type="text" class="form-control" id="recoveryDate" name="recoveryDate" placeholder="回收时间">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="recyclingName" class="col-3 col-form-label">回收人员ID</label>
                                    <div class="col-9">
                                        <input readonly="readonly" type="text" class="form-control" id="recyclingName" name="recyclingName" placeholder="回收人员">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="sendName" class="col-3 col-form-label">送回人员ID</label>
                                    <div class="col-9">
                                        <input readonly="readonly" type="text" class="form-control" id="sendName" name="sendName" placeholder="送回人员">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="status" class="col-3 col-form-label">回收状态</label>
                                    <div class="col-9">
                                        <select class="selectpicker form-control" id="status" name="status" title="回收状态" data-hide-disabled="ture" data-actions-box="true" disabled="disabled">
                                            <option value="0">正常</option>
                                            <option value="1">故障</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label for="deposit" class="col-3 col-form-label">押金退回（元）</label>
                                    <div class="col-9">
                                        <input readonly="readonly" type="text" class="form-control" id="deposit" name="deposit" placeholder="押金退回">
                                    </div>
                                </div>
                                <div class="form-group mb-0 justify-content-end row">
                                    <div class="col-9">
                                        <button type="button" onclick="layer_close()" class="btn btn-danger waves-effect">关闭</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>

            </div>
            <!-- container -->

        </div>

        <!-- ============================================================== -->
        <!-- End Right content here -->
        <!-- ============================================================== -->

    </div>
    <!-- END wrapper -->

    <!-- jQuery  -->
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/bootstrap.bundle.min.js"></script>
    <script src="assets/js/metisMenu.min.js"></script>
    <script src="assets/js/waves.js"></script>
    <script src="assets/js/jquery.slimscroll.js"></script>

    <!-- App js -->
    <script src="assets/js/custom.js" type="text/javascript" charset="utf-8"></script>
    <script src="assets/js/jquery.core.js"></script>
    <script src="assets/js/jquery.app.js"></script>
    <script src="assets/js/custom.js" type="text/javascript" charset="utf-8"></script>

    <!-- 表单验证 -->
    <script src="plugins/jquery.form.js/jquery.form.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="plugins/jquery.validation.1.14.0/jquery.validate.js" type="text/javascript" charset="utf-8"></script>
    <script src="plugins/jquery.validation.1.14.0/validate-methods.js" type="text/javascript" charset="utf-8"></script>
    <script src="plugins/jquery.validation.1.14.0/messages_zh.js" type="text/javascript" charset="utf-8"></script>
    <!-- bootstrap-select -->
    <script src="plugins/bootstrap-select/js/bootstrap-select.js" type="text/javascript" charset="utf-8"></script>

    <!-- layer插件 -->
    <script src="plugins/layer2.4/layer.js" type="text/javascript" charset="utf-8"></script>

    <!-- easyUI -->
    <script src="plugins/jquery-easyUI/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="plugins/jquery-easyUI/easyui-lang-zh_CN.js" type="text/javascript" charset="utf-8"></script>

    <!-- datatables插件 -->
    <script type="text/javascript">
        $(function() {

            code = get_code()
                //把参数回填
            $.ajax({
                type: "get",
                url: URL + 'barcodeMachineRecovery/' + code,
                async: false,
                dataType: "json",
                success: function(data) {
                    data = data.object
                    console.log(data)
                    if (!data.status) data.status = '0'
                    $("form").form('load', data);
                    $('#stallsId').selectpicker('val', data.stallsId);
                    $('.selectpicker').selectpicker('refresh');
                    $('.selectpicker').selectpicker('render');
                },
                error: function(XMLHttpRequest, textStatus, errorThrown) {
                    networkError(XMLHttpRequest, textStatus, errorThrown)
                }
            });
        });
    </script>

</body>

</html>